

#ifndef   __SIMPHONY_STATUS
#define   __SIMPHONY_STATUS

typedef struct
{
		unsigned STAT__APPARATUS_ENABLE					:	1;
		unsigned STAT__OUT_OF_THE_LOCATION_ZONE		:	1;	 /* Location was changed */
		unsigned STAT__APPARATUS_TURN_ON					:	1;
		unsigned STAT__CDR_TABLE_IS_FULL					:	1;
		unsigned STAT__UNITS_COUNT_LESS_THAN			:	1;
		unsigned STAT__SIM_WAS_CHANGED					:	1;
		unsigned STAT__TAMPER_OPEN							:	1;
		unsigned STAT__PART_OF_CURRENT_VERSION			:	1;	/* program place: part 00 or part 01 */
		
		unsigned char NOT_IN_USE;

}STATUS_BITS;

typedef struct 
{
		unsigned long DateTime;
		CONFIG_FILE ConfigFile;
		unsigned long PrepaidCounter;
		unsigned int CDR_Index;
		unsigned char RSSI;
		unsigned char Battery;
		STATUS_BITS	StatusBits;
		//unsigned char FirmwareVersion[6];

}STATUS_FILE;

extern STATUS_BITS StatusBits;
extern STATUS_FILE StatusFile; 

void Status_Init( void );

#endif

// ##187B359811000013737SS837A4B0D2904000000000000A4004A2E00001.40 $
